<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	/*******main*******/
	$return['member']=cfc('core')->get_member($_SESSION['uid']);
	$return['list']=array();
	set_html('title',$basic['title']?'首页-'.$basic['title']:'首页');
	$setting = $this->plugin_setting('basic');
	//公告列表
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$total='';
	$notice_list = pdo_getslice('jy_baobiao_notice',array('uniacid'=>$_SESSION['uniacid'],'status'=>1),array($pindex,10),$total,array('id','title','createtime'),'','id desc');
	if($notice_list){
		foreach($notice_list as &$notice){
			if($_SESSION['os']=='windows'){
				$notice['createtime']=date('m-d',$notice['createtime']);
			}else{
				$notice['createtime']=date('Y-m-d H:i',$notice['createtime']);
			}
		}
	}
	$return['notices']=$notice_list;
	$return['sharedata']=array(
		'title'=>$setting['share_title']?$setting['share_title']:'首页-项目申报',
		'desc'=>$setting['share_desc']?$setting['share_desc']:'项目申报！',
		'link'=>custom_url('jy_kexie/index//fromuser='.$_SESSION['uid'],true),
		'imgUrl'=>ATTACHMENT_URL.$setting['share_image']
	);
	$return['params']=array();
	$return['baofile']=$this->plugin_setting('baofile');
	set_html('title',$setting['title']?:'首页');
	exi($return);
}